package com.travelparadise.service;

import java.util.Collection;

import com.travelparadise.dao.HotelDao;

import com.travelparadise.domain.Hotel;
import com.travelparadise.domain.Ville;

public class HotelService {
	private HotelDao hotelDao;
	
	public Hotel getById(int id){
		return hotelDao.getById(id);
	}

	public Collection<Hotel> getByVille(Ville ville){
		return hotelDao.searchByVille(ville);	
	}

	public HotelDao getHotelDao() {
		return hotelDao;
	}

	public void setHotelDao(HotelDao hotelDao) {
		this.hotelDao = hotelDao;
	}
	
	
}
